package com.baitiaojun.api.domain.video;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel("视频收藏夹")
public class CollectionGroup {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(hidden = true)
    private Long id;

    @ApiModelProperty(hidden = true)
    private Long userid;

    @ApiModelProperty(value = "收藏夹名称", required = true)
    private String name;

    @ApiModelProperty(readOnly = true)
    private String type;

    @ApiModelProperty(value = "收藏夹缩略图")
    private String thumbnail;

    @ApiModelProperty(name = "收藏夹描述")
    private String description;

    @ApiModelProperty(readOnly = true)
    private Date createtime;

    @ApiModelProperty(readOnly = true)
    private Date updatetime;
}